package io.dataease.config;

import io.dataease.datasource.dto.DataSourceHolder;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;



public class DynamicDatasource extends AbstractRoutingDataSource {


    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceHolder.getDataSource();
    }


}
